<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="materialId" name="materialId" th:value="${material.materialId}"  type="hidden">
						<div class="form-group">
							<label class="col-sm-3 control-label">名称：</label>
							<div class="col-sm-8">
								<input id="materialName" name="materialName" th:value="${material.materialName}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">规格：</label>
							<div class="col-sm-8">
								<input id="specs" name="specs" th:value="${material.specs}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">保质期：</label>
							<div class="col-sm-8">
								<input id="shelflife" name="shelflife" th:value="${material.shelflife}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">计量单位：</label>
							<div class="col-sm-8">
								<input id="unit" name="unit" th:value="${material.unit}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">品牌：</label>
							<div class="col-sm-8">
								<input id="brand" name="brand" th:value="${material.brand}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">单价：</label>
							<div class="col-sm-8">
								<input id="price" name="price" th:value="${material.price}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">备注：</label>
							<div class="col-sm-8">
								<input id="mark" name="mark" th:value="${material.mark}" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-3">
								<button type="submit" class="btn btn-primary">提交</button>
								<input type="button" class="btn btn-danger" value="取消"
									   onclick="javascript:
											var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
				                            parent.layer.close(index);">
								</input>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript"  th:src="@{/js/appjs/material/material/edit.js}" src="/js/appjs/material/material/edit.js">
</script>
</body>
</html>
